 <!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>首页</title>
		<link rel="stylesheet" type="text/css" href="/node_modules/bootstrap/dist/css/bootstrap.css"/>
		<script type="text/javascript" src="/node_modules/jquery/dist/jquery.js"></script>
		<script type="text/javascript" src="/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
	</head>
	<body>
		<div>
			<nav class="navbar navbar-default navbar-fixed-top">
			  <span>首页</span>
			  <div class="pull-right">
				  {{if user}}
				  <div class="dropdown">
				    <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
				      我的
				      <span class="caret"></span>
				    </button>
				    <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
				      <li><a href="#">个人信息</a></li>
				      <li><a href="/logout">退出</a></li>
				    </ul>
				  </div>
				  {{else}}
				  <div>
					  <a href="/login" class="btn btn-primary">登录</a>
					  <a href="/register" class="btn btn-success">注册</a>
				  </div>
				  {{/if}}
			  </div>
			</nav>
			<div class="jumbotron">
			  <h1>Hello, world!</h1>
			  <p>...</p>
			  <p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
			</div>
		</div>
		
	</body>
</html>
